#pragma once


namespace DirectUI
{
	class CUIImageSource
		: public CUINoAggregateObjectImplHelper<IUIImageSource, CUIImageSource, IUIImageSource>
		// IUIImageSource
	{
		DECLARE_CLASS(CUIImageSource, ImageSource)
	public:
		CUIImageSource(void);
		virtual ~CUIImageSource(void);

		virtual LPCTSTR GetResName();

		virtual void SetResName( LPCTSTR lpszResName );

		virtual LPCTSTR GetImageFilePath();

		virtual void SetImageFilePath( LPCTSTR lpszFileSource );

		virtual RECT GetValidImageArea();

		virtual void SetValidImageArea( RECT rc );

		virtual RECT GetNineGrid();

		virtual void SetNineGrid( RECT rc );

		virtual void ParseAttributes( LPCTSTR lpszAttr );

	private:
		CString		m_szResName;
		CString		m_szImageFilePath;
		CRect		m_rcValidImageArea;
		CRect		m_rcNineGrid;
	};
}

